<template>
	<view class="blood">
		<view class="watch"></view>
		<view class="background">
			<view class="header">
				<view class="header-left">
					<image src="../../static/blood/Group54@2x.png" mode="" @click="back"></image>
				</view>
				<view class="header-right" @click="show = true">
					<image src="../../static/blood/ht1@2x.png" mode="" class="header-right-image"></image>
					<text>第37轮</text>
					<image src="../../static/blood/Frame@2x.png" mode="" class="header-right-up"></image>
				</view>
			</view>
			<view class="content">
				<text>奖励排行榜</text>
				<image src="../../static/blood/Rectangle65@2x.png" mode="" class="header-right-up"></image>
			</view>
			<view class="bottom">
				<view class="bottom-header">
					<view class="bottom-header-left">排名/用户</view>
					<view class="bottom-header-right">获得宝石奖励</view>
				</view>
				<view class="bottom-content">
					<view class="bottom-content-first" v-for="item in 10" :key="item.id">
						<view class="bottom-content-left">
							<view class="ranking-left">1</view>
							<image src="../../static/blood/Group122@2x.png" mode=""></image>
							<view class="ranking-right">修*哥</view>
						</view>
						<view class="bottom-content-right">
							<view class="number-left">1614751</view>
							<image src="../../static/blood/ic_ape_stone10@2x.png" mode=""></image>
						</view>
					</view>
						
				</view>
			</view>
		</view>
		
		<u-picker :show="show" :columns="columns" @cancel="close" @confirm="confirm()"></u-picker>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false,
				columns: [
				['第1轮', '第2轮', '第3轮','第4轮', '第5轮', '第6轮', '第7轮', '第8轮','第9轮', '第10轮', '第11轮']
				 ],
			};
		},
		methods:{
			back(){
				uni.navigateBack(-1);
			},
			close(){
				this.show = false
				console.log(this.show)
			},
			confirm(index){
				uni.navigateTo({
					url:'/pages/Ranking/index'
				})
			}
			
		}
	}
</script>

<style lang="scss" scoped>
  .blood{
		position: relative;
		min-height: 100vh;
		background: #D0FFEB;
		.watch{
			background:url('../../static/blood/watch.png');
			background-size:cover;
			width: 309rpx;
			height: 309rpx;
			position: absolute;
			right: 0;
			top: 0;
			opacity: 0.7;
			
		}
		.background{
			// height: 1550rpx;
			min-height: 100vh;
			background: linear-gradient(219deg, rgba(0,0,0,0.44) 0%, #000000 100%);
			opacity: 1;
			.header{
				height: 69rpx;
				display: flex;
				align-items: center;
				padding: 97rpx 28.64rpx 50rpx 28.64rpx;
				.header-left{
					image{
						width: 38rpx;
						height: 38rpx;
						padding-right: 187rpx;
						background-size:cover;
						display: flex;
						align-items: center;
					}
				}
				.header-right{
					width: 223rpx;
					height: 65rpx;
					background-color: #000000A6;
					border-radius: 95.42rpx;
					z-index:1;
					display: flex;
					align-items: center;
					.header-right-image{
						width: 82.06rpx;
						height: 69rpx;
						margin-left:-5rpx;
					}
					text{
						font-size: 27rpx;
						font-family: PingFang SC, PingFang SC;
						font-weight: 800;
						color: #FFFFFF;
						padding-left: 16rpx;
						padding-right: 6rpx;
					}
					.header-right-up{
						width: 23rpx;
						height: 17rpx;
					}
				}
			}
		  .content{
				display: flex;
				align-items: center;
				justify-content: center;
				flex-direction: column;
				text{
					font-size: 27rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 800;
					color: #FFFFFF;
				}
				image{
					width: 34rpx;
					height: 5.8rpx;
					padding-bottom: 25rpx;
				}
			}
		  .bottom{
				background:url('../../static/blood/Rectangle61@2x.png');
				background-size:cover;
				// width: 710rpx;
				min-height: 100vh;
				border-radius:38.17rpx 38.17rpx 0rpx 0rpx;
				background:#FEFDF9FF;
				z-index:1;
				margin-left: 30rpx;
				margin-right: 30rpx;
				.bottom-header{
					width: 100%;
					height: 101rpx;
					display: flex;
					justify-content: space-between;
					align-items: center;
					border-radius:38.17rpx 38.17rpx 0rpx 0rpx;
					background:linear-gradient(to right, #FFFDFEFF, #FEF1E0FF);
					.bottom-header-left,.bottom-header-right{
						font-size: 23rpx;
						font-family: PingFang SC, PingFang SC;
						font-weight: 500;
						color: rgba(0,0,0,0.5);
					}
					.bottom-header-left{
							padding-left:29rpx;
					}
					.bottom-header-right{
						padding-right: 29rpx;
					}
				}
			  .bottom-content{
					display: flex;
					flex-direction: column;
					.bottom-content-first{
						height: 101rpx;
						display: flex;
						align-items: center;
						padding-left:40rpx;
						padding-right:40rpx;
						justify-content: space-between;
						.bottom-content-left{
							display: flex;
							align-items: center;
							.ranking-left{
								font-size: 27rpx;
								font-family: Douyin Sans, Douyin Sans;
								font-weight: bold;
								color: #F74F31;
								padding-right: 15rpx;
							}
							image{
								width: 55rpx;
								height: 55rpx;
								padding-right: 15rpx;
							}
							.ranking-right{
								font-size: 23rpx;
								font-family: PingFang SC, PingFang SC;
								font-weight: bold;
								color: rgba(0,0,0,0.5);
							}
						}
					  .bottom-content-right{
							display: flex;
							align-items: center;
							.number-left{
								font-size: 27rpx;
								font-family: Douyin Sans, Douyin Sans;
								font-weight: bold;
								color: #000000;
								padding-right: 4rpx;
							}
							image{
								width: 36rpx;
								height: 38rpx;
							}
						}
					}
				}
			}
		}

	}
</style>
